//
//  myLikeModel.swift
//  OnceNectar
//
//  Created by Zhang Dream on 2018/6/24.
//  Copyright © 2018年 com.inwhoop. All rights reserved.
//

import Foundation
import MappingAce
import SwiftyJSON
struct myLikeModel:Mapping {
    
    var id : String?
    var commentator :String?
    var commentatorID :String?
    var commentId :String?
    var source :String?
    var sourceName :String?
    var created :String?
    
    var liker:AuthorModel?
    var info:myCommendModel?

}

extension myLikeModel{

    mutating func initAuthor(dic: [String:Any]) {
        liker = AuthorModel(fromDic: dic)
    }
    mutating func initCommentModel(dic: [String:Any]) {
        info = myCommendModel(fromDic: dic)
    }

}
